MACKAVELLI Algorithmic StrategyI had a hard time finding a strategy that would work in different time-frames and multiple different currency pairs. This is what I ended up with after countless hours of research and testing. I designed this strategy for auto-algorithmic trading and it uses three different indicators for Long/Short positions and a 4th indicator for exiting positions.
1) A green-light indicator that tells you whether or not you can go long/short.
2) A confirmation indicator that executes the long/short positions.
3) A chop indicator that measures the distance between the two MA's. When they're too close a trade will not be executed, as this usually indicates a chop zone.
4) A third MA is used as an exit indicator.
5) Finally, a loop function is designed to prevent repeat signals. Once a signal is produced on bar close it cannot happen again until that trade is closed or a new position is opened.
Be advised, you need to adjust the settings for each currency pair and time-frame. Once you do that, back-test it and count the last 100 trades to determine accurately your wins/losses. Long entries are the top of the previous bar, shorts are the bottom of the previous bar. This is a more accurate way of counting wins/losses. Tradingview back-test's are not accurate because of where they estimate your long/short entries are, it's very misleading.
Right now I have it setup for 2hr USDCAD with a back-test of 58% win rate on the last 100 trades.
The chop indicator is set to 0.04, I suggest starting there. 0.03 is the lowest I would go. You can go all the way up to 0.1 and higher if needed. You'll start missing big trades though.
The EMA for green-light signal is set to 10, a lower number will give you more entries but less accurate results, bigger number will give less entries with more accuracy but with missed opportunities. 10 is a good starting point.
This strategy is also designed so you can use tight stop losses to prevent large losses. This is because the strategy typically catches trends on the way up/down, minimizing risk for reversal.
I use Heikin Ashi candles for a smoother chart to work with. I have not tested this strategy with normal candles.
DEMO this strategy before using it live and make sure you back-test and tune it before you start. This is written in PINE V3 SO IT WILL NOT REPAINT.
Cerca negli script per "stop loss"
Momentum Trader Strategy 3.0Momentum Trader 3.0 is a momentum trading strategy which uses volume to confirm market momentum driven moves.
By default it only trades between 0900 and 1530 (designed for futures trading and can be toggled to 24/7)
No repaint issues, what you see is real
Toggles allow you to enable Long or Short independently which may work better or worse for your market
Designed primarily for Day Trading (1-15m interval)
Presently only the Short side is optimized, the Long works but overtrades a bit. I will be adding an option to remove the less useful signals and improve performance.
Momentum Trader is a real and successful momentum strategy (which I use myself). It isn't a miracle 'always win' strategy but it is a steady workhorse. By combining high probability momentum trades and auto stop-losses, it takes a good slice of most rallies, a big slice of the grand drops, and avoids heavy sudden losses.
Momentum Trader can be used in any timeframe. Your success depends on the volatility of the individual market. I recommend trading at 10m and below for high volatility instruments like ES/SPX while low volatility instruments can be traded at the 1h and beyond. At the level of 1D+ it also works as well but naturally as a momentum strategy it may take a while to pivot.
Momentum Trader provides you with 3 long and 2 short entries which represent different levels of risk/reward. Like any real strategy, there can be periods of chop where the strategy will lose (small based on stop-loss) if the market is chopping very quickly back and forth or pivoting suddenly. As a rule, Momentum Trader attempts to avoid most of that by typically flagging trends which are established and confirmed. Different signals give you different degrees of confirmation and thus different risk/reward.
Trend-following Microprofit w/ Smart DCA + Profit Plot + AlertsThis alert script is oriented towards automated trading with Gunbot.
I call it "Options Galore" because of all the user-configurable settings it offers for up-trending and down-trending markets. (See: " Market Tone " study).
A strategy script for quantitative backtesting, smarter buy/sell indicator such as TSI or Stoch RSI, and stop loss/trailing stop are all in the pipeline. Please share any other suggestions in the comments!
Features:
Set backtesting range, or start forward testing from the current time. Historical Renko charts can lead to repainting, which is avoided by keeping the chart open in your browser and running with real time data.
Average protection: only buy if price drops by a certain % below your average price -- can be automatically toggled by market trender if we want to continue buying during an uptrend. This reduces net profit but increases gross profit.
Gain protection: only sell if price is a certain % above your average price -- can be automatically toggled by market trender. Wait for larger profits in an uptrend, but sell earlier in a down trend.
Minimum percent gain can also be set to a negative value to allow selling at a loss. This is not true stop loss behavior, we still need a sell signal from the indicator. This means we will try to get the best price above your price floor, but in some rare situations we may not sell before the price drops below your price floor.
Position plotter: plots average long position price relative to current price.
Plot loss level: plots average price - loss %. With pyramiding turned off, this can be used to find out where to set your stop loss.
This script is free to use, just comment or PM for access. It is mainly meant to showcase some new features, and is only safe to use in carefully selected markets such as USDT-BTC.
Stay posted for upcoming scripts with smarter signaling and additional features! If you would like to add these features to your own preferred strategy, please PM me.
Position Size CalculatorPosition Size Calculator - User Guide
A simple tool to calculate optimal position size based on your risk preferences, visualize trade levels, and automatically determine trade direction.
Introduction
The Position Size Calculator is a TradingView indicator designed to help traders calculate the optimal position size for their trades based on account size and risk tolerance. This tool visually represents entry, stop loss, and take profit levels while automatically calculating the appropriate position size to maintain consistent risk management.
Getting Started
Setting Up Your Account Parameters
Setting Price Levels
Understanding the Visual Elements
Adjusting Your Trade on the Chart
Reading the Information Panel
1. Getting Started
After adding the indicator to your chart, you'll see three horizontal lines representing:
Yellow line: Entry price
Green line: Take profit price
Red line: Stop loss price
The indicator automatically detects whether you're planning a Long or Short trade based on the position of your take profit relative to your entry.
2. Setting Up Your Account Parameters
In the "Position Calculator" settings group:
Account Size : Enter your total account balance
Account Currency : Set your account currency (USD, EUR, etc.)
Risk (%) : Enter the percentage of your account you're willing to risk per trade (e.g., 2%)
Instrument Type : Select your trading instrument (Forex, Futures, Stocks, or Crypto)
Value per 0.01 lot per tick : Enter the value of 0.01 lots per tick (for most Forex pairs, this is $1 per pip for 0.01 lot)
Minimum Lot Size : Set the minimum lot size allowed by your broker (usually 0.01 for Forex)
3. Setting Price Levels
In the "Price Levels" section:
Entry Price : The price at which you plan to enter the trade
Stop Loss Price : Where you'll exit if the trade goes against you
Take Profit Price : Your target price where you'll take profits
If you set Entry Price to 0, it will default to the current price. If Stop Loss or Take Profit are set to 0, they'll default to 5% below or above entry price respectively.
4. Understanding the Visual Elements
Yellow line : Your entry price
Green line : Your take profit level
Red line : Your stop loss level
Green zone : The profit zone (between entry and take profit)
Red zone : The loss zone (between entry and stop loss)
Information panel : Shows all calculations and trade details
5. Adjusting Your Trade on the Chart
The beauty of this tool is its interactivity:
You can drag any of the lines directly on the chart to adjust entry, stop loss, or take profit
If you drag the take profit above the entry , the indicator automatically sets up for a Long trade
If you drag the take profit below the entry , it automatically configures for a Short trade
All calculations and visuals update in real-time as you adjust the lines
This means you can quickly test different scenarios and see how they affect your position size and potential profit/loss.
6. Reading the Information Panel
The information panel displays:
Account details : Your account size and currency
Risk information : Your percentage risk and the equivalent monetary amount
Position Size : The optimal lot size calculated based on your risk parameters
Price levels : Entry, Stop Loss, and Take Profit with distances in ticks
Risk/Reward ratio : Shown as 1:X (where X is the reward relative to 1 unit of risk)
Potential outcomes : The exact amount you stand to gain or lose on this trade
Trade direction : Whether this is a Long or Short trade
Visual Settings
You can customize the appearance in the "Visual" settings group:
Adjust colors for profit and loss zones
Change the transparency of colored zones
Toggle the filling of spaces between lines
Adjust how far the lines extend beyond the last candle
Practical Tips
Always double-check your "Value per 0.01 lot per tick" setting for the specific instrument you're trading
For Forex major pairs, the standard is usually $1 per pip for 0.01 lots
For other instruments, consult your broker's specifications
The indicator works best when you place your stop loss at a logical market level (support/resistance, swing high/low) rather than a fixed percentage
Final Thoughts
This Position Size Calculator helps remove emotion from your trading by objectively calculating your position size based on your predefined risk parameters. It ensures that you maintain consistent risk across all your trades, regardless of the stop loss distance, which is a key component of successful risk management.
Remember: The most important goal in trading is capital preservation. This tool helps you ensure that each trade risks only what you've decided is acceptable for your trading strategy.
Previous Highs & Lows [TradeWithRon]
Previous Highs & Lows + Fibonacci
This script plots previous Daily, Weekly, Monthly, and Quarterly Highs and Lows along with optional Fibonacci retracement levels (0.5 and 0.618) based on the prior session ranges. It is designed to help traders quickly identify potential support/resistance levels and liquidity zones across multiple timeframes.
✅ Features:
Toggle visibility for Daily, Weekly, Monthly, and Quarterly levels.
Customizable line styles, colors, and widths.
Option to display Fibonacci retracement lines with configurable labels and styles.
Auto-adjusts and extends levels for real-time visualization.
Efficient label handling to minimize chart clutter.
Usage:
Use previous highs/lows to gauge breakout or rejection areas.
Leverage Fibonacci levels to identify potential retracement points or confluence zones with price action.
Combine timeframe levels for stronger zone validation.
Use Cases:
Identify areas where price may react based on historical ranges.
Combine with other strategies for confluence trading.
Perfect for traders who value market structure and clean, reliable levels.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
Time Based Liquidity [TradeWithRon]This is a ICT Liquidity tool visualizes that liquidity zones derived from major trading sessions (Asia, London, and New York) to help traders identify key areas where price may react. It plots highs and lows from each session, highlights breaks of structure, and tracks live session ranges with optional background boxes and labels great for ICT Traders. The indicator also displays timestamp lines, previous period highs/lows, and a liquidity dashboard table with real-time updates.
Key Features:
* Session Liquidity Lines:
* Plots session highs and lows for Asia, London, and NY sessions.
* Tracks both historical and live session highs/lows.
* Breaks are detected and color-coded for quick visual feedback.
* Session Boxes:
* Optional background boxes visually represent each session’s high/low range.
* Fully customizable per session.
* Break Detection and Bar Coloring:
* Price breaking a session high/low triggers visual bar coloring.
* Breaks are tracked with customizable color styles for highs/lows.
* Timestamp & Vertical Lines:
* Add vertical lines for key time points like 9:30, 12:00, etc.
* Add horizontal lines for open prices at specific times (e.g., NY open).
* Previous Highs & Lows:
* Toggle on daily, weekly, monthly, and quarterly high/low levels.
* Includes label styling and extension options.
* Liquidity Table:
* Shows last break prices and next unbroken targets for each session.
* Updates in real-time to highlight active liquidity zones.
Customization Options:
* Session line colors, widths, and number of lines shown.
* Session box background colors and visibility toggles.
* Timestamp label text, styles, and drawing limits.
* Bar color styling for break confirmation.
* Table location, size, and colors.
* Extensive support for lower timeframe detail with timeframe filter.
Use Case:
This script is ideal for liquidity-based trading, session scalping, and smart money concepts (SMC). Traders can use this tool to identify areas of liquidity interest, detect real-time structural breaks, and track how price interacts with unmitigated levels.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
EMA Cross Pro v2.5 | True PnL Tracking + Break Even SystemEMA Cross Pro v2.5 | True PnL Tracking + Break-Even System
Description
This strategy combines fast and slow EMA crossovers with multi-stage profit-taking, a configurable stop-loss, and an optional break-even mechanism—while tracking real, closed-trade PnL on the chart. It’s designed to show exactly how much you earn or lose on each partial exit, reset your breakeven when a profit target hits, and label every trade’s midpoint profit/loss.
1) Strategy Logic & Rationale
EMA Crossover (Fast = 21 / Slow = 55): Signals trend changes.
Partial Profit-Taking:
TP1 at +0.5% on 60% of position
TP2 at +1.0% on 30%
TP3 at +1.5% on final 10%
This pyramided exit reduces risk and locks in gains in stages.
Stop-Loss at 1.0% ensures maximum risk per trade.
Break-Even: Optionally moves your stop to entry when TP1 (or TP2/TP3) is reached, protecting unrealized gains.
True PnL Tracking: Calculates and plots realized profit/loss—including partial exits and break-even closes—directly on chart labels.
Alerts: Flexible alarms for entry, each TP, SL, and break-even activation.
2) Default Inputs & Execution
Backtest Start Date: Jan 1 2025
Initial Capital: $1 000
Position Sizing: 10% of equity per entry
Commission: 0.10% per side
Slippage: 0.05%
TP & SL Levels:
TP1: +0.5% (60%)
TP2: +1.0% (30%)
TP3: +1.5% (10%)
SL: –1.0% on remaining size
Break-Even Triggers: Activate on TP1 (default), TP2 or TP3
Alerts: All configurable on/off in the settings panel
3) Backtest Parameters & Results
Backtested on BTCUSDT 1H bars from 2025-01-01 to 2025-05-01:
Total Trades: 78
Win Rate: 62.8%
Average Risk/Reward: 1 : 1.25
Max Drawdown: 7.5%
Net Return: +14.2%
(Assumes 0.10% commission and 0.05% slippage. Past performance does not guarantee future results.)
4) How to Use
Add to Chart: Search “EMA Cross Pro v2.5” and apply to your instrument.
Set Inputs: Adjust EMAs, TP/SL levels, break-even triggers and alarms to suit your style.
Monitor Labels: Entry, TP1, TP2, TP3, SL and break-even labels appear on chart with exact $ profit or loss.
Review PnL Panel: A table shows total trades, win rate, net P/L and streaks—updated in real time.
Risk Management: Never risk more than 1% per trade; always factor in commission/slippage.
5) Warnings & Disclaimer
This strategy is for educational purposes only. Always validate with your own data feed, apply robust risk controls, and be aware that backtest results may differ from live performance.
AlphaTrend++AlphaTrend++
Overview
The AlphaTrend++ is an advanced Pine Script indicator designed to help traders identify buy and sell opportunities in trending and volatile markets. Building on trend-following principles, it uses a modified Average True Range (ATR) calculation combined with volume or momentum data to plot a dynamic trend line. The indicator overlays on the price chart, displaying a colored trend line, a filled trend zone, buy/sell signals, and optional stop-loss tick labels, making it ideal for day trading or swing trading, particularly in markets like futures (e.g., MES).
What It Does
This indicator generates buy and sell signals based on the direction and momentum of a custom trend line, filtered by optional time restrictions and signal frequency logic. The trend line adapts to price action and volatility, with a filled zone highlighting trend strength. Buy/sell signals are plotted as labels, and stop-loss distances are displayed in ticks (customizable for instruments like MES). The indicator supports standard chart types for realistic signal generation.
How It Works
The indicator employs the following components:
Trend Line Calculation: A dynamic trend line is calculated using ATR adjusted by a user-defined multiplier, combined with either Money Flow Index (MFI) or Relative Strength Index (RSI) depending on volume availability. The line tracks price movements, adjusting upward or downward based on trend direction and volatility.
Trend Zone: The area between the current trend line and its value two bars prior is filled, colored green for bullish trends (upward movement) or red for bearish trends (downward movement), providing a visual cue of trend strength.
Signal Generation: Buy signals occur when the trend line crosses above its value two bars ago, and sell signals occur when it crosses below, with optional filtering to reduce signal noise (based on bar timing logic). Signals can be restricted to a 9:00–15:00 UTC trading window.
Stop-Loss Ticks: For each signal, the indicator calculates the distance to the trend line (acting as a stop-loss level) in ticks, using a user-defined tick size (default 0.25 for MES). These are displayed as labels below/above the signal.
Time Filter: An optional filter limits signals to 9:00–15:00 UTC, aligning with active trading sessions like the US market open.
The indicator ensures compatibility with standard chart types (e.g., candlestick or bar charts) to avoid unrealistic results associated with non-standard types like Heikin Ashi or Renko.
How to Use It
Add to Chart: Apply the indicator to a candlestick or bar chart on TradingView.
Configure Settings:
Multiplier: Adjust the ATR multiplier (default 1.0) to control trend line sensitivity. Higher values widen the stop-loss distance.
Common Period: Set the ATR and MFI/RSI period (default 14) for trend calculations.
No Volume Data: Enable if volume data is unavailable (e.g., for certain forex pairs), switching from MFI to RSI.
Tick Size: Set the tick size for stop-loss calculations (default 0.25 for MES futures).
Show Buy/Sell Signals: Toggle signal labels (default enabled).
Show Stop Loss Ticks: Toggle stop-loss tick labels (default enabled).
Use Time Filter: Restrict signals to 9:00–15:00 UTC (default disabled).
Use Filtered Signals: Enable to reduce signal frequency using bar timing logic (default enabled).
Interpret Signals:
Buy Signal: A blue “BUY” label below the bar indicates a potential long entry (trend line crossover, passing filters).
Sell Signal: A red “SELL” label above the bar indicates a potential short entry (trend line crossunder, passing filters).
Trend Zone: Green fill suggests bullish momentum; red fill suggests bearish momentum.
Stop-Loss Ticks: Gray labels show the stop-loss distance in ticks, helping with risk management.
Monitor Context: Use the trend line and filled zone to confirm the market’s direction before acting on signals.
Unique Features
Adaptive Trend Line: Combines ATR with MFI or RSI to create a responsive trend line that adjusts to volatility and market conditions.
Tick-Based Stop-Loss: Displays stop-loss distances in ticks, customizable for specific instruments, aiding precise risk management.
Signal Filtering: Optional bar timing logic reduces false signals, improving reliability in choppy markets.
Trend Zone Visualization: The filled zone between trend line values enhances trend clarity, making it easier to assess momentum.
Time-Restricted Trading: Optional 9:00–15:00 UTC filter aligns signals with high-liquidity sessions.
Notes
Use on standard candlestick or bar charts to ensure accurate signals.
Test the indicator on a demo account to optimize settings for your market and timeframe.
Combine with other analysis (e.g., support/resistance, volume spikes) for better decision-making.
The indicator is not a standalone system; use it as part of a broader trading strategy.
Limitations
Signals may lag in highly volatile or low-liquidity markets due to ATR-based calculations.
The 9:00–15:00 UTC time filter may not suit all markets; disable it for 24-hour assets like forex or crypto.
Stop-loss tick calculations assume consistent tick sizes; verify compatibility with your instrument.
This indicator is designed for traders seeking a robust, trend-following tool with customizable risk management and signal filtering, optimized for active trading sessions.
Heiken Ashi Supertrend ADXHeiken Ashi Supertrend ADX Indicator
Overview
This indicator combines the power of Heiken Ashi candles, Supertrend indicator, and ADX filter to identify strong trend movements across multiple timeframes. Designed primarily for the cryptocurrency market but adaptable to any tradable asset, this system focuses on capturing momentum in established trends while employing a sophisticated triple-layer stop loss mechanism to protect capital and secure profits.
Strategy Mechanics
Entry Signals
The strategy uses a unique blend of technical signals to identify high-probability trade entries:
Heiken Ashi Candles: Looks specifically for Heiken Ashi candles with minimal or no wicks, which signal strong momentum and trend continuation. These "full-bodied" candles represent periods where price moved decisively in one direction with minimal retracement. These are overlayed onto normal candes for more accuarte signalling and plotting
Supertrend Filter: Confirms the underlying trend direction using the Supertrend indicator (default factor: 3.0, ATR period: 10). Entries are aligned with the prevailing Supertrend direction.
ADX Filter (Optional) : Can be enabled to focus only on stronger trending conditions, filtering out choppy or ranging markets. When enabled, trades only trigger when ADX is above the specified threshold (default: 25).
Exit Signals
Positions are closed when either:
An opposing signal appears (Heiken Ashi candle with no wick in the opposite direction)
Any of the three stop loss mechanisms are triggered
Triple-Layer Stop Loss System
The strategy employs a sophisticated three-tier stop loss approach:
ATR Trailing Stop: Adapts to market volatility and locks in profits as the trend extends. This stop moves in the direction of the trade, capturing profit without exiting too early during normal price fluctuations.
Swing Point Stop: Uses natural market structure (recent highs/lows over a lookback period) to place stops at logical support/resistance levels, honoring the market's own rhythm.
Insurance Stop: A percentage-based safety net that protects against sudden adverse moves immediately after entry. This is particularly valuable when the swing point stop might be positioned too far from entry, providing immediate capital protection.
Optimization Features
Customizable Filters : All components (Supertrend, ADX) can be enabled/disabled to adapt to different market conditions
Adjustable Parameters : Fine-tune ATR periods, Supertrend factors, and ADX thresholds
Flexible Stop Loss Settings : Each of the three stop loss mechanisms can be individually enabled/disabled with customizable parameters
Best Practices for Implementation
[Recommended Timeframes : Works best on 4-hour charts and above, where trends develop more reliably
Market Conditions: Performs well across various market conditions due to the ADX filter's ability to identify meaningful trends
Performance Characteristics
When properly optimized, this has demonstrated profit factors exceeding 3 in backtesting. The approach typically produces generous winners while limiting losses through its multi-layered stop loss system. The ATR trailing stop is particularly effective at capturing extended trends, while the insurance stop provides immediate protection against adverse moves.
The visual components on the chart make it easy to follow the strategy's logic, with position status, entry prices, and current stop levels clearly displayed.
This indicator represents a complete trading system with clearly defined entry and exit rules, adaptive stop loss mechanisms, and built-in risk management through position sizing.
Heiken Ashi Supertrend ADX - StrategyHeiken Ashi Supertrend ADX Strategy
Overview
This strategy combines the power of Heiken Ashi candles, Supertrend indicator, and ADX filter to identify strong trend movements across multiple timeframes. Designed primarily for the cryptocurrency market but adaptable to any tradable asset, this system focuses on capturing momentum in established trends while employing a sophisticated triple-layer stop loss mechanism to protect capital and secure profits.
Strategy Mechanics
Entry Signals
The strategy uses a unique blend of technical signals to identify high-probability trade entries:
Heiken Ashi Candles: Looks specifically for Heiken Ashi candles with minimal or no wicks, which signal strong momentum and trend continuation. These "full-bodied" candles represent periods where price moved decisively in one direction with minimal retracement.
Supertrend Filter : Confirms the underlying trend direction using the Supertrend indicator (default factor: 3.0, ATR period: 10). Entries are aligned with the prevailing Supertrend direction.
ADX Filter (Optional) : Can be enabled to focus only on stronger trending conditions, filtering out choppy or ranging markets. When enabled, trades only trigger when ADX is above the specified threshold (default: 25).
Exit Signals
Positions are closed when either:
An opposing signal appears (Heiken Ashi candle with no wick in the opposite direction)
Any of the three stop loss mechanisms are triggered
Triple-Layer Stop Loss System
The strategy employs a sophisticated three-tier stop loss approach:
ATR Trailing Stop: Adapts to market volatility and locks in profits as the trend extends. This stop moves in the direction of the trade, capturing profit without exiting too early during normal price fluctuations.
Swing Point Stop : Uses natural market structure (recent highs/lows over a lookback period) to place stops at logical support/resistance levels, honoring the market's own rhythm.
Insurance Stop: A percentage-based safety net that protects against sudden adverse moves immediately after entry. This is particularly valuable when the swing point stop might be positioned too far from entry, providing immediate capital protection.
Optimization Features
Customizable Filters: All components (Supertrend, ADX) can be enabled/disabled to adapt to different market conditions
Adjustable Parameters: Fine-tune ATR periods, Supertrend factors, and ADX thresholds
Flexible Stop Loss Settings: Each of the three stop loss mechanisms can be individually enabled/disabled with customizable parameters
Best Practices for Implementation
Recommended Timeframes: Works best on 4-hour charts and above, where trends develop more reliably
Market Conditions: Performs well across various market conditions due to the ADX filter's ability to identify meaningful trends
Position Sizing: The strategy uses a percentage of equity approach (default: 3%) for position sizing
Performance Characteristics
When properly optimized, this strategy has demonstrated profit factors exceeding 3 in backtesting. The approach typically produces generous winners while limiting losses through its multi-layered stop loss system. The ATR trailing stop is particularly effective at capturing extended trends, while the insurance stop provides immediate protection against adverse moves.
The visual components on the chart make it easy to follow the strategy's logic, with position status, entry prices, and current stop levels clearly displayed.
This strategy represents a complete trading system with clearly defined entry and exit rules, adaptive stop loss mechanisms, and built-in risk management through position sizing.
Follow Line Strategy Version 2.5 (React HTF)Follow Line Strategy v2.5 (React HTF) - TradingView Script Usage
This strategy utilizes a "Follow Line" concept based on Bollinger Bands and ATR to identify potential trading opportunities. It includes advanced features like optional working hours filtering, higher timeframe (HTF) trend confirmation, and improved trend-following entry/exit logic. Version 2.5 introduces reactivity to HTF trend changes for more adaptive trading.
Key Features:
Follow Line: The core of the strategy. It dynamically adjusts based on price breakouts beyond Bollinger Bands, using either the low/high or ATR-adjusted levels.
Bollinger Bands: Uses a standard Bollinger Bands setup to identify overbought/oversold conditions.
ATR Filter: Optionally uses the Average True Range (ATR) to adjust the Follow Line offset, providing a more dynamic and volatility-adjusted entry point.
Optional Trading Session Filter: Allows you to restrict trading to specific hours of the day.
Higher Timeframe (HTF) Confirmation: A significant feature that allows you to confirm trade signals with the trend on a higher timeframe. This can help to filter out false signals and improve the overall win rate.
HTF Selection Method: Choose between Auto and Manual HTF selection:
Auto: The script automatically determines the appropriate HTF based on the current chart timeframe (e.g., 1min -> 15min, 5min -> 4h, 1h -> 1D, Daily -> Monthly).
Manual: Allows you to select a specific HTF using the Manual Higher Timeframe input.
Trend-Following Entries/Exits: The strategy aims to enter trades in the direction of the established trend, using the Follow Line to define the trend.
Reactive HTF Trend Changes: v2.5 exits positions not only based on the trade timeframe (TTF) trend changing, but also when the higher timeframe trend reverses against the position. This makes the strategy more responsive to larger market movements.
Alerts: Provides buy and sell alerts for convenient trading signal notifications.
Visualizations: Plots the Follow Line for both the trade timeframe and the higher timeframe (optional), making it easy to understand the strategy's logic.
How to Use:
Add to Chart: Add the "Follow Line Strategy Version 2.5 (React HTF)" script to your TradingView chart.
Configure Settings: Customize the strategy's settings to match your trading style and preferences. Here's a breakdown of the key settings:
Indicator Settings:
ATR Period: The period used to calculate the ATR. A smaller period is more sensitive to recent price changes.
Bollinger Bands Period: The period used for the Bollinger Bands calculation. A longer period results in smoother bands.
Bollinger Bands Deviation: The number of standard deviations from the moving average that the Bollinger Bands are plotted. Higher deviations create wider bands.
Use ATR for Follow Line Offset?: Enable to use ATR to calculate the Follow Line offset. Disable to use the simple high/low.
Show Trade Signals on Chart?: Enable to show BUY/SELL labels on the chart.
Time Filter:
Use Trading Session Filter?: Enable to restrict trading to specific hours of the day.
Trading Session: The trading session to use (e.g., 0930-1600 for regular US stock market hours). Use 0000-2400 for all hours.
Higher Timeframe Confirmation:
Enable HTF Confirmation?: Enable to use the HTF trend to filter trade signals. If enabled, only trades in the direction of the HTF trend will be taken.
HTF Selection Method: Choose between "Auto" and "Manual" HTF selection.
Manual Higher Timeframe: If "Manual" is selected, choose the specific HTF (e.g., 240 for 4 hours, D for daily).
Show HTF Follow Line?: Enable to plot the HTF Follow Line on the chart.
Understanding the Signals:
Buy Signal: The price breaks above the upper Bollinger Band, and the HTF (if enabled) confirms the uptrend.
Sell Signal: The price breaks below the lower Bollinger Band, and the HTF (if enabled) confirms the downtrend.
Exit Long: The trade timeframe trend changes to downtrend or the higher timeframe trend changes to downtrend.
Exit Short: The trade timeframe trend changes to uptrend or the higher timeframe trend changes to uptrend.
Alerts:
The script includes alert conditions for buy and sell signals. To set up alerts, click the "Alerts" button in TradingView and select the desired alert condition from the script. The alert message provides the ticker and interval.
Backtesting and Optimization:
Use TradingView's Strategy Tester to backtest the strategy on different assets and timeframes.
Experiment with different settings to optimize the strategy for your specific trading style and risk tolerance. Pay close attention to the ATR Period, Bollinger Bands settings, and the HTF confirmation options.
Tips and Considerations:
HTF Confirmation: The HTF confirmation can significantly improve the strategy's performance by filtering out false signals. However, it can also reduce the number of trades.
Risk Management: Always use proper risk management techniques, such as stop-loss orders and position sizing, when trading any strategy.
Market Conditions: The strategy may perform differently in different market conditions. It's important to backtest and optimize the strategy for the specific markets you are trading.
Customization: Feel free to modify the script to suit your specific needs. For example, you could add additional filters or entry/exit conditions.
Pyramiding: The pyramiding = 0 setting prevents multiple entries in the same direction, ensuring the strategy doesn't compound losses. You can adjust this value if you prefer to pyramid into winning positions, but be cautious.
Lookahead: The lookahead = barmerge.lookahead_off setting ensures that the HTF data is calculated based on the current bar's closed data, preventing potential future peeking bias.
Trend Determination: The logic for determining the HTF trend and reacting to changes is critical. Carefully review the f_calculateHTFData function and the conditions for exiting positions to ensure you understand how the strategy responds to different market scenarios.
Disclaimer:
This script is for informational and educational purposes only. It is not financial advice, and you should not trade based solely on the signals generated by this script. Always do your own research and consult with a qualified financial advisor before making any trading decisions. The author is not responsible for any losses incurred as a result of using this script.
FiFto -Stock movement % calcIndicator Overview:
The script creates an overlay on your chart to display two key features:
Burst Power Calculation: A measure of significant price moves (5%, 10%, 19%) with counts of occurrences for each move type.
SL/Target Info: Displays stop-loss (SL) quantities and target percentages based on your risk parameters.
These features are displayed in a customizable table and offer real-time data for analysis.
Inputs:
Burst Power Inputs:
Lookback Period: Specifies the timeframe to calculate price moves for. You can choose from options like "3 Months", "6 Months", "1 Year", etc.
Display Mode: You can choose to display the table in "Full" mode (showing all relevant data) or "Mini" mode (showing only basic information).
Show Latest Date: Toggles whether the table includes a column showing the date of the latest move.
Dark Mode: Switches the colors of the table between light and dark modes for better visibility.
Closing Threshold: Defines how close the closing price must be to the high of the bar to consider it valid for analysis.
Table Settings:
Table Size: Allows you to select the table size from options like "small", "normal", "large", etc.
Table Position: Lets you choose where the table is positioned on the screen (top, middle, or bottom of the chart).
Table Font Size: Adjusts the font size of the text in the table (small, normal, or large).
Disable Table Colors: If true, the table will not use colors for cells, giving a more neutral appearance.
SL/Target Settings:
Show SL/Target Info: Whether to include Stop-Loss and Target information in the table.
Risk Amount: The monetary value you're willing to risk on a trade. This is used to calculate the stop-loss quantity.
SL Percentage: The percentage below the entry point at which the stop-loss will be triggered.
Target Percentage: The percentage above the entry point at which the target will be set.
Style Settings:
These settings define the appearance of the table, including colors and fonts. The table will adjust based on your color preferences (dark mode or light mode), with options for customizing background colors, text colors, and border styles.
Burst Power Calculation:
This part of the script calculates the Burst Power value based on price movements and updates the table with:
Counts of Price Moves:
5% or more
10% or more
19% or more
Burst Power Value: A weighted value calculated by summing the counts of each price move, with different weights for each move type:
5% moves contribute 1/5
10% moves contribute 1/2
19% moves contribute 1/0.5
Max Price Move: Tracks the maximum price move (and its timestamp) for the current period.
Logic:
For each bar, it checks if the price moved by 5%, 10%, or 19% or more, and updates the respective count and date of the last occurrence of each price move.
It calculates a "Burst Power" value based on the occurrences of these price moves and assigns a color to indicate how strong the burst power is.
Stop-Loss (SL) and Target Calculation:
This part calculates the quantity of the asset you can purchase based on your risk amount and stop-loss percentage:
One-Hour High: Tracks the highest price over the past hour (using 60-minute candles).
Target Price: Sets a target price based on the daily close and the target percentage input.
SL Quantity: The amount of the asset you can risk given the stop-loss points and your risk amount.
Target Percent Remaining: Shows how much of your target is left to reach, based on the one-hour high price.
Table Display Logic:
This is the most important part of the indicator because it determines how the data is displayed on the chart in a table. Here's a breakdown:
Column and Row Setup:
Based on the display mode (Full or Mini), it adjusts the number of rows and columns in the table.
The columns display the types of data (e.g., "Max%", "05% +", "Burst Power", etc.), while the rows show the values of those parameters.
If "Show Latest Date" is enabled, an additional column will show the date of the last occurrence for each price move.
Burst Power and SL/Target Info:
The table displays the following information:
Max % Move: The largest price move observed.
Burst Power: A score indicating the strength of the price move (calculated from 5%, 10%, and 19% price moves).
SL Quantity: The quantity you can trade based on your risk and stop-loss.
Target % Left: The remaining percentage to reach the target price.
The table updates whenever the barstate is the last and the selected timeframe is active.
Table Position:
The table position is adjustable based on the inputs (top, middle, bottom), allowing you to control where the table appears on the screen.
Changes Made for Timeframe Flexibility:
The table and all its calculations previously only displayed when the chart was in a daily timeframe (timeframe.isdaily). This behavior has been removed.
No Timeframe Dependency: The table now displays regardless of which timeframe you are viewing. If you switch to another timeframe (e.g., 15-minute, 1-hour), the table will still appear without needing to be modified. The table will display in all timeframes you choose.
How to Use:
Install the Script: Add this script to your chart in TradingView as a custom indicator.
Customize Settings: Use the inputs in the settings panel to adjust your preferred values for lookback period, risk amount, SL percentage, target percentage, and other table display options.
Analyze the Data: Watch the table update with real-time data as you analyze price movements. The table will show the frequency and magnitude of price bursts, along with risk and target data to help you make better trading decisions.
Open Range Candle [TradeWithRon]This Open Range Break indicator is a tool designed to help traders identify and visualize key price levels using the Opening Range Breakout (ORB) strategy. This indicator dynamically plots critical levels such as the high, low, and middle of a predefined range, along with Fibonacci retracement levels for further analysis. It also features several customization options to fit various trading styles.
Key Features:
Session Setup: Allows the user to set the time offset in GMT - or + to adjust the ORB session to their local time zone.
The default ORB session is set at 9:45 AM but can be adjusted based on user preferences.
Warning: Only supports 5-minute and 15-minute timeframes.
Visual Customization:
Line Styles: Users can choose from Solid, Dotted, or Dashed lines to represent key price levels.
Color Adjustments: Customizable colors for the high, middle, and low levels of the range, as well as Fibonacci levels and vertical lines.
Labeling Options: The labels can be customized in terms of size and color, helping to keep the chart clean and clear.
Fibonacci Retracement Levels: Fibonacci retracement levels are automatically drawn between the high and low of the range. Users can toggle these on or off and customize the offset to suit different trading instruments.
Time-Based Visuals: A vertical line is drawn at the start of the ORB session, providing a clear visual marker of where the breakout starts. This is useful for pinpointing key trade setups.
The indicator supports both 5-minute and 15-minute timeframes.
EMA Integration: The user can enable an Exponential Moving Average (EMA) on any chosen timeframe with adjustable parameters such as the length and color, providing additional trend context.
Dynamic Labeling: The indicator labels the high, middle, and low points of the ORB with custom text. These labels are updated in real-time as new data becomes available.
Limit on Lines and Labels: The indicator allows for a limit on the number of lines and labels drawn to maintain a clean chart, preventing unnecessary clutter as more ORB levels are plotted.
Daily Bias Information: The indicator assesses the daily trend bias (bullish or bearish) based on the relationship between the open and close prices for the last three daily candles, providing context for the current trading session.
Countdown Timer: The remaining time until the end of the current session is displayed in a countdown format, which helps traders to time their entries and exits more precisely.
How To Use:,
- Set the Timeframe to 15 minutes.
- Adjust the Time Zone Offset if needed, based on your local time zone.
- Enable the Show ORB feature for the first 15-minute candle to be drawn as the opening range. - The indicator will automatically mark the high, middle, and low points of the range.
Identify Breakout Points:
Bullish Breakout: If the price breaks above the high of the 15-minute opening range, this indicates a potential bullish breakout. The indicator will plot a vertical line marking the breakout point for further confirmation.
Bearish Breakout: If the price breaks below the low of the 15-minute opening range, this signals a potential bearish breakout. Again, the indicator will plot the breakout point with a vertical line for easy identification.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
CISD [TradeWithRon]The CISD (Change in State of Delivery) indicator helps traders identify significant price action events by tracking liquidity sweeps and CISD events. It highlights key market structure shifts by marking liquidity levels and failed breakouts, offering insights into potential reversals and breakout confirmations.
Features:
CISD Detection: Identifies high and low CISD events with customizable display settings.
Customizable Display: Users can control how many CISD lines and liquidity lines are shown.
Customization:
- Adjust the number of CISD and liquidity lines displayed.
- Modify the swing length and back-checking period for greater flexibility.
- Choose different colors and line styles to match your charting preferences.
Use Cases:
- Spot traps and reversals.
- Identify breakout confirmations.
- Enhance market structure analysis.
- Combine with other technical indicators for improved decision-making.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
Order Block Candle [TradeWithRon]Order Block Candle
This indicator is designed to help traders identify and visualize key movements within the market. These order blocks are areas where significant buying or selling has occurred, often leading to a strong price reaction. This script detects both bullish and bearish order blocks (with volume spike), marking them directly on your chart, and offers a variety of customization options to enhance your trading experience.
Features:
Bullish and Bearish Candles: Bullish Order Block: Identified when the current price creates a higher high and closes above the previous price, indicating a zone of potential buying activity by institutional traders.
Bearish Order Block: Identified when the current price creates a lower low and closes below the previous price, suggesting strong institutional selling.
Volume-Weighted Analysis: The indicator allows traders to incorporate volume into the order block detection. When a volume pivot (a significant change in volume) is detected, it strengthens the validity of the identified order block.
Customizable Visuals:
- Users can adjust the color and style of order block lines, including solid, dashed, or dotted styles, to suit personal preferences.
- Bullish Order Block Color: Choose from a range of colors to highlight bullish order blocks (default is green).
- Bearish Order Block Color: Choose a color for bearish order blocks (default is red).
- Users can also customize the color and style of the lines representing order blocks, helping traders visually track key levels.
Candle Body or. Wick: The indicator provides flexibility in defining the price range of the order block. Traders can choose whether to calculate the order block using the candle body (open and close) or the full wick (high and low) to suit their trading strategy.
Dynamic Line Extensions: Order block lines are dynamically extended to provide ongoing support and resistance levels. When a price breaks an order block line, the line changes to a dotted style, marking it as "broken." This allows traders to easily spot when the market invalidates an order block.
Alerts:
- Alert for Bullish Order Block: Get notified when a new bullish order block is detected.
- Alert for Bearish Order Block: Receive alerts when a bearish order block is identified.
- Alert for Broken Lines: Set up alerts to be notified when a bullish or bearish order block line is broken, giving traders a signal for potential market shifts.
Zone Management:
- The indicator tracks upper and lower zone information, marking significant price levels where institutional buying or selling might occur. Traders can adjust settings to define how many previous lines should be displayed on the chart for reference.
Optional Mitigated Order Blocks:
- A feature that highlights mitigated (neutralized) order blocks with a specific color and line style, offering additional insight into market behavior.
Input Settings:
- Length: The number of bars to the left and right of a pivot point for it to be considered a high or low.
- Candle Body: Option to use the candle body for calculations (as opposed to the wick).
- Bullish and Bearish Candle Color: Customizable colors for bullish and bearish order blocks.
- Open Line Style: Choose between solid, dashed, or dotted line styles for order block visualization.
- Removed Old Lines: Control the number of broken lines shown on the chart.
- Mitigated Line Style: Select line style for mitigated order blocks.
- Volume Use: Enable volume-based detection for stronger order block validation.
How to Use:
This indicator is ideal for traders looking to trade around institutional support and resistance levels. The bullish and bearish order blocks can serve as key entry or exit points, while broken lines offer dynamic support/resistance that adapt to market changes. Use the alerts to stay informed of critical market developments and adjust your trading strategy accordingly.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future
Market Structure Break with Volume & ATR#### Indicator Overview:
The *Market Structure Break with Volume & ATR (MSB+VolATR)* indicator is designed to identify significant market structure breakouts and breakdowns using a combination of price action, volume analysis, and volatility (ATR). It is particularly useful for traders who rely on higher timeframes for swing trading or positional trading. The indicator highlights bullish and bearish breakouts, retests, fakeouts, and potential buy/sell signals based on RSI overbought/oversold conditions.
---
### Key Features:
1. *Market Structure Analysis*:
- Identifies swing highs and lows on a user-defined higher timeframe.
- Detects breakouts and breakdowns when price exceeds these levels with volume and ATR validation.
2. *Volume Validation*:
- Ensures breakouts are accompanied by above-average volume, reducing the likelihood of false signals.
3. *ATR Filter*:
- Filters out insignificant breakouts by requiring the breakout size to exceed a multiple of the ATR.
4. *RSI Integration*:
- Adds a momentum filter by considering overbought/oversold conditions using RSI.
5. *Visual Enhancements*:
- Draws colored boxes to highlight breakout zones.
- Labels breakouts, retests, and fakeouts for easy interpretation.
- Displays stop levels for potential trades.
6. *Alerts*:
- Provides alert conditions for buy and sell signals, enabling real-time notifications.
---
### Input Settings and Their Effects:
1. **Timeframe (tf):
- Determines the higher timeframe for market structure analysis.
- *Effect*: A higher timeframe (e.g., 1D) reduces noise and provides more reliable swing points, while a lower timeframe (e.g., 4H) may generate more frequent but less reliable signals.
2. **Lookback Period (length):
- Defines the number of historical bars used to identify significant highs and lows.
- *Effect*: A longer lookback period (e.g., 50) captures broader market structure, while a shorter period (e.g., 20) reacts faster to recent price action.
3. **ATR Length (atr_length):
- Sets the period for ATR calculation.
- *Effect*: A shorter ATR length (e.g., 14) reacts faster to recent volatility, while a longer length (e.g., 21) smooths out volatility spikes.
4. **ATR Multiplier (atr_multiplier):
- Filters insignificant breakouts by requiring the breakout size to exceed ATR × multiplier.
- *Effect*: A higher multiplier (e.g., 0.2) reduces false signals but may miss smaller breakouts.
5. **Volume Multiplier (volume_multiplier):
- Sets the volume threshold for breakout validation.
- *Effect*: A higher multiplier (e.g., 1.0) ensures stronger volume confirmation but may reduce the number of signals.
6. **RSI Length (rsi_length):
- Defines the period for RSI calculation.
- *Effect*: A shorter RSI length (e.g., 10) makes the indicator more sensitive to recent price changes, while a longer length (e.g., 20) smooths out RSI fluctuations.
7. *RSI Overbought/Oversold Levels*:
- Sets the thresholds for overbought (default: 70) and oversold (default: 30) conditions.
- *Effect*: Adjusting these levels can make the indicator more or less conservative in generating signals.
8. **Stop Loss Multiplier (SL_Multiplier):
- Determines the distance of the stop-loss level from the entry price based on ATR.
- *Effect*: A higher multiplier (e.g., 2.0) provides wider stops, reducing the risk of being stopped out prematurely but increasing potential losses.
---
### How It Works:
1. *Breakout Detection*:
- A bullish breakout occurs when the close exceeds the highest high of the lookback period, with volume above the threshold and breakout size exceeding ATR × multiplier.
- A bearish breakout occurs when the close falls below the lowest low of the lookback period, with similar volume and ATR validation.
2. *Retest Logic*:
- After a breakout, if price retests the breakout zone without closing beyond it, a retest label is displayed.
3. *Fakeout Detection*:
- If price briefly breaks out but reverses back into the range, a fakeout label is displayed.
4. *Buy/Sell Signals*:
- A sell signal is generated when price reverses below a bullish breakout zone and RSI is overbought.
- A buy signal is generated when price reverses above a bearish breakout zone and RSI is oversold.
5. *Stop Levels*:
- Stop-loss levels are plotted based on ATR × SL_Multiplier, providing a visual guide for risk management.
---
### Who Can Use It and How:
1. *Swing Traders*:
- Use the indicator on daily or 4-hour timeframes to identify high-probability breakout trades.
- Combine with other technical analysis tools (e.g., trendlines, Fibonacci levels) for confirmation.
2. *Positional Traders*:
- Apply the indicator on weekly or daily charts to capture long-term trends.
- Use the stop-loss levels to manage risk over extended periods.
3. *Algorithmic Traders*:
- Integrate the buy/sell signals into automated trading systems.
- Use the alert conditions to trigger trades programmatically.
4. *Risk-Averse Traders*:
- Adjust the ATR and volume multipliers to filter out low-probability trades.
- Use wider stop-loss levels to avoid premature exits.
---
### Where to Use It:
- *Forex*: Identify breakouts in major currency pairs.
- *Stocks*: Spot trend reversals in high-volume stocks.
- *Commodities*: Trade breakouts in gold, oil, or other commodities.
- *Crypto*: Apply to Bitcoin, Ethereum, or other cryptocurrencies for volatile breakout opportunities.
---
### Example Use Case:
- *Timeframe*: 1D
- *Lookback Period*: 50
- *ATR Length*: 14
- *ATR Multiplier*: 0.1
- *Volume Multiplier*: 0.5
- *RSI Length*: 14
- *RSI Overbought/Oversold*: 70/30
- *SL Multiplier*: 1.5
In this setup, the indicator will:
1. Identify significant swing highs and lows on the daily chart.
2. Validate breakouts with volume and ATR filters.
3. Generate buy/sell signals when price reverses and RSI confirms overbought/oversold conditions.
4. Plot stop-loss levels for risk management.
---
### Conclusion:
The *MSB+VolATR* indicator is a versatile tool for traders seeking to capitalize on market structure breakouts with added confirmation from volume and volatility. By customizing the input settings, traders can adapt the indicator to their preferred trading style and risk tolerance. Whether you're a swing trader, positional trader, or algorithmic trader, this indicator provides actionable insights to enhance your trading strategy.
Stop/Take BoundsThe Stop/Take Bounds indicator is tool for setting dynamic stop-loss and take-profit levels based on percentage distance from the price. Unlike traditional ATR-based methods, this indicator allows traders to set stop levels as a fixed percentage of the price and define the take-profit multiple.
- Stop-loss distanceis determined as a percentage of the current price (e.g., 1% means the stop-loss is always 1% away from the price).
- Take-profit distance is calculated by multiplying the stop-loss distance by a user-defined multiplier (e.g., a multiplier of 2 places the take-profit level twice as far as the stop-loss).
- The indicator plots red lines for stop-loss levels and green lines for take-profit levels, making it easy to visualize risk-to-reward scenarios.
How to Use
1. Set Stop-Loss Distance (%) – Define how far the stop-loss should be from the price.
2. Set Take-Profit Multiplier – Choose how many times larger the take-profit should be compared to the stop-loss.
3. Apply to Long and Short Trades – The indicator automatically plots levels for both long and short positions.
4. Use in Manual or Algorithmic Trading – Ideal for discretionary traders as well as for integration into algorithmic strategies.
Use Cases
- Risk Management – Helps maintain disciplined risk-to-reward ratios.
- Strategy Development – Can be used in the creation of algorithmic trading systems.
- Trailing Stop Simulation – Can act as a trailing stop mechanism when used dynamically.
This indicator is a great addition to any trading strategy!
Advanced Adaptive Grid Trading StrategyThis strategy employs an advanced grid trading approach that dynamically adapts to market conditions, including trend, volatility, and risk management considerations. The strategy aims to capitalize on price fluctuations in both rising (long) and falling (short) markets, as well as during sideways movements. It combines multiple indicators to determine the trend and automatically adjusts grid parameters for more efficient trading.
How it Works:
Trend Analysis:
Short, long, and super long Moving Averages (MA) to determine the trend direction.
RSI (Relative Strength Index) to identify overbought and oversold levels, and to confirm the trend.
MACD (Moving Average Convergence Divergence) to confirm momentum and trend direction.
Momentum indicator.
The strategy uses a weighted scoring system to assess trend strength (strong bullish, moderate bullish, strong bearish, moderate bearish, sideways).
Grid System:
The grid size (the distance between buy and sell levels) changes dynamically based on market volatility, using the ATR (Average True Range) indicator.
Grid density also adapts to the trend: in a strong trend, the grid is denser in the direction of the trend.
Grid levels are shifted depending on the trend direction (upwards in a bear market, downwards in a bull market).
Trading Logic:
The strategy opens long positions if the trend is bullish and the price reaches one of the lower grid levels.
It opens short positions if the trend is bearish and the price reaches one of the upper grid levels.
In a sideways market, it can open positions in both directions.
Risk Management:
Stop Loss for every position.
Take Profit for every position.
Trailing Stop Loss to protect profits.
Maximum daily loss limit.
Maximum number of positions limit.
Time-based exit (if the position is open for too long).
Risk-based position sizing (optional).
Input Options:
The strategy offers numerous settings that allow users to customize its operation:
Timeframe: The chart's timeframe (e.g., 1 minute, 5 minutes, 1 hour, 4 hours, 1 day, 1 week).
Base Grid Size (%): The base size of the grid, expressed as a percentage.
Max Positions: The maximum number of open positions allowed.
Use Volatility Grid: If enabled, the grid size changes dynamically based on the ATR indicator.
ATR Length: The period of the ATR indicator.
ATR Multiplier: The multiplier for the ATR to fine-tune the grid size.
RSI Length: The period of the RSI indicator.
RSI Overbought: The overbought level for the RSI.
RSI Oversold: The oversold level for the RSI.
Short MA Length: The period of the short moving average.
Long MA Length: The period of the long moving average.
Super Long MA Length: The period of the super long moving average.
MACD Fast Length: The fast period of the MACD.
MACD Slow Length: The slow period of the MACD.
MACD Signal Length: The period of the MACD signal line.
Stop Loss (%): The stop loss level, expressed as a percentage.
Take Profit (%): The take profit level, expressed as a percentage.
Use Trailing Stop: If enabled, the strategy uses a trailing stop loss.
Trailing Stop (%): The trailing stop loss level, expressed as a percentage.
Max Loss Per Day (%): The maximum daily loss, expressed as a percentage.
Time Based Exit: If enabled, the strategy exits the position after a certain amount of time.
Max Holding Period (hours): The maximum holding time in hours.
Use Risk Based Position: If enabled, the strategy calculates position size based on risk.
Risk Per Trade (%): The risk per trade, expressed as a percentage.
Max Leverage: The maximum leverage.
Important Notes:
This strategy does not guarantee profits. Cryptocurrency markets are volatile, and trading involves risk.
The strategy's effectiveness depends on market conditions and settings.
It is recommended to thoroughly backtest the strategy under various market conditions before using it live.
Past performance is not indicative of future results.
Multi-Timeframe Parabolic SAR Strategy ver 1.0Multi-Timeframe Parabolic SAR Strategy (MTF PSAR) - Enhanced Trend Trading
This strategy leverages the power of the Parabolic SAR (Stop and Reverse) indicator across multiple timeframes to provide robust trend identification, precise entry/exit signals, and dynamic trailing stop management. By combining the insights of both the current chart's timeframe and a user-defined higher timeframe, this strategy aims to improve trading accuracy, reduce risk, and capture more significant market moves.
Key Features:
Dual Timeframe Analysis: Simultaneously analyzes the Parabolic SAR on the current chart and a higher timeframe (e.g., Daily PSAR on a 1-hour chart). This allows you to align your trades with the dominant trend and filter out noise from lower timeframes.
Configurable PSAR: Fine-tune the PSAR calculation with adjustable Start, Increment, and Maximum values to optimize sensitivity for your trading style and the asset's volatility.
Independent Timeframe Control: Choose to display and trade based on either or both the current timeframe PSAR and the higher timeframe PSAR. Focus on the most relevant information for your analysis.
Clear Visual Signals: Distinct colors for the current and higher timeframe PSAR dots provide a clear visual representation of potential entry and exit points.
Multiple Entry Strategies: The strategy offers flexible entry conditions, allowing you to trade based on:
Confirmation: Both current and higher timeframe PSAR signals agree and the current timeframe PSAR has just flipped direction. (Most conservative)
Current Timeframe Only: Trades based solely on the current timeframe PSAR, ideal for when the higher timeframe is less relevant or disabled.
Higher Timeframe Only: Trades based solely on the higher timeframe PSAR.
Dynamic Trailing Stop (PSAR-Based): Implements a trailing stop-loss based on the current timeframe's Parabolic SAR. This helps protect profits by automatically adjusting the stop-loss as the price moves in your favor. Exits are triggered when either the current or HTF PSAR flips.
No Repainting: Uses lookahead=barmerge.lookahead_off in the security() function to ensure that the higher timeframe data is accessed without any data leakage, preventing repainting issues.
Fully Configurable: All parameters (PSAR settings, higher timeframe, visibility, colors) are adjustable through the strategy's settings panel, allowing for extensive customization and optimization.
Suitable for Various Trading Styles: Applicable to swing trading, day trading, and trend-following strategies across various markets (stocks, forex, cryptocurrencies, etc.).
How it Works:
PSAR Calculation: The strategy calculates the standard Parabolic SAR for both the current chart's timeframe and the selected higher timeframe.
Trend Identification: The direction of the PSAR (dots below price = uptrend, dots above price = downtrend) determines the current trend for each timeframe.
Entry Signals: The strategy generates buy/sell signals based on the chosen entry strategy (Confirmation, Current Timeframe Only, or Higher Timeframe Only). The Confirmation strategy offers the highest probability signals by requiring agreement between both timeframes.
Trailing Stop Exit: Once a position is entered, the strategy uses the current timeframe PSAR as a dynamic trailing stop. The stop-loss is automatically adjusted as the PSAR dots move, helping to lock in profits and limit losses. The strategy exits when either the Current or HTF PSAR changes direction.
Backtesting and Optimization: The strategy automatically backtests on the chart's historical data, allowing you to evaluate its performance and optimize the settings for different assets and timeframes.
Example Use Cases:
Trend Confirmation: A trader on a 1-hour chart observes a bullish PSAR flip on the current timeframe. They check the MTF PSAR strategy and see that the Daily PSAR is also bullish, confirming the strength of the uptrend and providing a high-probability long entry signal.
Filtering Noise: A trader on a 5-minute chart wants to avoid whipsaws caused by short-term price fluctuations. They use the strategy with a 1-hour higher timeframe to filter out noise and only trade in the direction of the dominant trend.
Dynamic Risk Management: A trader enters a long position and uses the current timeframe PSAR as a trailing stop. As the price rises, the PSAR dots move upwards, automatically raising the stop-loss and protecting profits. The trade is exited when the current (or HTF) PSAR flips to bearish.
Disclaimer:
The Parabolic SAR is a lagging indicator and can produce false signals, particularly in ranging or choppy markets. This strategy is intended for educational and informational purposes only and should not be considered financial advice. It is essential to backtest and optimize the strategy thoroughly, use it in conjunction with other technical analysis tools, and implement sound risk management practices before using it with real capital. Past performance is not indicative of future results. Always conduct your own due diligence and consider your risk tolerance before making any trading decisions.
Liquidity Market Seeking SwiftEdgeThis indicator is designed to identify potential liquidity levels on the chart by detecting swing highs and lows, which are often areas where stop-loss orders or significant orders accumulate. It visualizes these levels with horizontal lines and labels on the right side of the chart, color-coded based on volume to help traders understand where the market might seek liquidity.
How It Works
Swing Highs and Lows: The indicator uses the ta.pivothigh and ta.pivotlow functions to identify significant swing points over a user-defined lookback period (Swing Length). These points are considered potential liquidity levels where stop-loss orders might be placed.
Volume Analysis: The indicator compares the volume at each swing point to the average volume over a specified period (Volume Average Length). Levels with above-average volume are colored red, indicating higher liquidity, while levels with below-average volume are colored green.
Liquidity Visualization: Horizontal dashed lines are drawn at each identified level, extending across the chart. Labels on the right side display the estimated liquidity amount (simulated based on volume and a multiplier, Volume Multiplier for Liquidity).
Sell Signal: A "SELL NOW" label appears when the price approaches a liquidity level after an uptrend (detected using a simple moving average crossover). This suggests a potential reversal as the market may target liquidity at that level.
Strategy Concept: Market Seeking Liquidity
The indicator is based on the concept that markets often move toward areas of high liquidity, such as clusters of stop-loss orders or significant order accumulations. These liquidity pools are typically found around swing highs and lows, where traders place their stop-losses or large orders. By identifying these levels and highlighting those with higher volume (red lines), the indicator aims to show where the market might move to "grab" this liquidity. For example, after an uptrend, the market may reverse at a swing high to take out stop-losses above that level, providing liquidity for larger players to enter or exit positions.
Settings
Swing Length: The number of bars to look back for detecting swing highs and lows. Default is 20.
Liquidity Threshold: The price threshold for merging nearby levels to avoid duplicates. Default is 0.001.
Volume Average Length: The period for calculating the average volume to compare against. Default is 20.
Volume Multiplier for Liquidity: A multiplier to scale the volume into a simulated liquidity amount (displayed as "K"). Default is 1000.
Usage Notes
Use this indicator on any timeframe, though it may be more effective on higher timeframes (e.g., 1H, 4H) where swing points are more significant.
Red lines indicate levels with higher volume, suggesting stronger liquidity pools that the market might target.
Green lines indicate levels with lower volume, which may be less significant.
The "SELL NOW" signal is a basic example of how to use liquidity levels for trading decisions. It appears when the price approaches a liquidity level after an uptrend, but it should be used in conjunction with other analysis.
Adjust the Volume Multiplier for Liquidity to scale the displayed liquidity amounts based on your instrument (e.g., forex pairs may need a higher multiplier than indices).
Multi-Timeframe EMA [TradeWithRon]Multi-Timeframe EMA Indicator
This indicator displays an Exponential Moving Average (EMA) from a higher timeframe on a lower timeframe chart. The EMA is a type of moving average that gives more weight to recent prices, making it more responsive to price changes compared to a Simple Moving Average (SMA). By overlaying a higher timeframe EMA on a lower timeframe chart, you can gain insights into the broader trend while analyzing price action at a more granular level.
🔶 FEATURES
* 5 MTF EMA with price and timeframe labels
* Smoothing: Alter the smoothness of the back-end EMA calculations.
* VWAP
Why Use EMA
Trend Identification: When the price is above the EMA, it suggests an uptrend, while a price below the EMA indicates a downtrend. The steeper the slope of the EMA, the stronger the trend.
Crossovers : A common strategy is to look for crossovers, such as when a short-term EMA crosses above a long-term EMA, signaling a potential buying opportunity (bullish crossover), or when a short-term EMA crosses below a long-term EMA, signaling a potential selling opportunity (bearish crossover).
Support and Resistance : EMAs can act as dynamic support and resistance levels. In an uptrend, the price may bounce off the EMA as support, while in a downtrend, it can act as resistance.
Convergence and Divergence: Traders look for divergences between price and the EMA to spot potential trend reversals. For example, if price makes a new high but the EMA doesn't, it could signal weakening momentum.
Overall, the EMA helps traders follow the market trend, spot potential reversals, and make more informed trading decisions.
After EMA Crosses you may experience A MSS, CISD, SFP. You can use all of these as confluence for a higher probability trade. This is a good way to capitalize on a trade
Another Case
How I Personally Use It:
Shortest EMA ( Example: 10 EMA ) = Entry
Middle EMA ( Example: 50 EMA ) = Short Term Support / Resistance
Longest EMA ( Example: 100 EMA ) = Long Term Support / Resistance
• WARNING
- If your MAIN chart TimeFrame its lower than ( selected TimeFrame ) the Table will not display signals
- Historical Data Unavailable for this resolution is under 2 minute chart, So you will have to use 2 minute and higher
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Liquidations Levels [RunRox]📈 Liquidation Levels is an indicator designed to visualize key price levels on the chart, highlighting potential reversal points where liquidity may trigger significant price movements.
Liquidity is essential in trading - price action consistently moves from one liquidity area to another. We’ve created this free indicator to help traders easily identify and visualize these liquidity zones on their charts.
📌 HOW IT WORKS
The indicator works by marking visible highs and lows, points widely recognized by traders. Because many traders commonly place their stop-loss orders beyond these visible extremes, significant liquidity accumulates behind these points. By analyzing trading volume and visible extremes, the indicator estimates areas where clusters of stop-loss orders (liquidity pools) are likely positioned, giving traders valuable insights into potential market moves.
As shown in the screenshot above, the price aggressively moved toward Sell-Side liquidity. After sweeping this liquidity level for the second time, it reversed and began targeting Buy-Side liquidity. This clearly demonstrates how price moves from one liquidity pool to another, continually seeking out liquidity to fuel its next directional move.
As shown in the screenshot, price levels with fewer anticipated trader stop-losses are indicated by less vibrant, faded colors. When the lines become more saturated and vivid, it signals that sufficient liquidity - in the form of clustered stop-losses has accumulated, potentially attracting price movement toward these areas.
⚙️ SETTINGS
🔹 Period – Increasing this setting makes the marked highs and lows more significant, filtering out minor price swings.
🔹 Low Volume – Select the color displayed for low-liquidity levels.
🔹 High Volume – Select the color displayed for high-liquidity levels.
🔹 Levels to Display – Choose between 1 and 15 nearest liquidity levels to be shown on the chart.
🔹 Volume Sensitivity – Adjust the sensitivity of the indicator to volume data on the chart.
🔹 Show Volume – Enable or disable the display of volume values next to each liquidity level.
🔹 Max Age – Limits displayed liquidity levels to those not older than the specified number of bars.
✅ HOW TO USE
One method of using this indicator is demonstrated in the screenshot above.
Price reached a high-liquidity level and showed an initial reaction. We then waited for a second confirmation - a liquidity sweep followed by a clear market structure break - to enter the trade.
Our target is set at the liquidity accumulated below, with the stop-loss placed behind the manipulation high responsible for the liquidity sweep.
By following this approach, you can effectively identify trading opportunities using this indicator.
🔶 We’ve made every effort to create an indicator that’s as simple and user-friendly as possible. We’ll continue to improve and enhance it based on your feedback and suggestions in the future.
EMA 5 Alert Candle ShortThe 5 EMA (Exponential Moving Average) Strategy is a simple yet effective trading strategy that helps traders identify short-term trends and potential entry and exit points. This strategy is widely used in intraday and swing trading, particularly in forex, stocks, and crypto markets.
Components of the 5 EMA Strategy
5 EMA: A fast-moving average that reacts quickly to price movements.
15-minute or 1-hour timeframe (commonly used, but adaptable to other timeframes).
Candlestick Patterns: To confirm entry signals.
How the 5 EMA Strategy Works
Buy (Long) Setup:
Price Above the 5 EMA: The price should be trading above the 5 EMA.
Pullback to the 5 EMA: A minor retracement or consolidation near the 5 EMA.
Bullish Candlestick Confirmation: A bullish candle (e.g., engulfing or pin bar) forms near the 5 EMA.
Entry: Enter a long trade at the close of the bullish candle.
Stop Loss: Place below the recent swing low or 5-10 pips below the 5 EMA.
Take Profit: Aim for a risk-reward ratio of at least 1:2 or trail the stop using a higher EMA (e.g., 10 or 20 EMA).
Sell (Short) Setup:
Price Below the 5 EMA: The price should be trading below the 5 EMA.
Pullback to the 5 EMA: A small retracement towards the 5 EMA.
Bearish Candlestick Confirmation: A bearish candle (e.g., engulfing or pin bar) near the 5 EMA.
Entry: Enter a short trade at the close of the bearish candle.
Stop Loss: Place above the recent swing high or 5-10 pips above the 5 EMA.
Take Profit: Aim for a 1:2 risk-reward ratio or use a trailing stop.
Additional Filters for Better Accuracy
Higher Timeframe Confirmation: Check the trend on a higher timeframe (e.g., 1-hour or 4-hour).
Volume Confirmation: Enter trades when volume is increasing.
Avoid Sideways Market: Use the strategy only when the market is trending.
Advantages of the 5 EMA Strategy
✔️ Simple and easy to use.
✔️ Works well in trending markets.
✔️ Helps traders capture short-term momentum.
Disadvantages
❌ Less effective in choppy or sideways markets.
❌ Requires discipline in following stop-loss rules.